package com.lucy.disk.params;

import com.lucy.disk.validator.DirCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
@Data
@ApiModel(value = "文件更新参数")
public class FileUpdateParams {

    @ApiModelProperty(value = "雪花ID",name = "id")
    private String id;


    @ApiModelProperty(value = "OSS地址")
    private String ossUrl;

    @DirCheck
    @ApiModelProperty(value = "目录ID")
    private String dirId;

    @ApiModelProperty(value = "用户ID")
    String userId;


    @ApiModelProperty(value = "文件名")
    private String fileName;


    @ApiModelProperty(value = "文件状态",notes = "0 为禁止访问 1 为正常")
    private Integer fileStatus;


    @ApiModelProperty(value = "只读")
    private Integer readOnly;
}
